package com.lxs.travel.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lxs.travel.core.po.BaseEntity;
import org.apache.ibatis.annotations.Param;

public interface ICrudDao<T extends BaseEntity> extends BaseMapper<T> {

    /**
     * @param page 分页对象
     * @param entity 查询条件
     * @return
     */
    public IPage<T> selectByPage(@Param("p") IPage<T> page, @Param("c") T entity);

}
